package vip.liux.contracts.shared.enums.product;

import vip.liux.core.enums.IEnum;

/**
 * 图片类型枚举
 * <p>
 * 0:下架
 * 1:上架
 * </p>
 */
public enum ImageType implements IEnum {
    // 上架状态 0:主图 1:详情图
    MAIN(0, "主图"),
    DETAIL(1, "详情图");

    final int value;
    final String desc;

    ImageType(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public int getValue() {
        return value;
    }

    @Override
    public String getDesc() {
        return desc;
    }
}
